using System;
using System.Windows;
using System.Threading.Tasks;

namespace DesktopWidgetApp.Client
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        /// <summary>
        /// 初始化应用程序
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Startup += OnStartup;
        }
        
        /// <summary>
        /// 应用程序启动事件处理 - 简化版本
        /// </summary>
        private void OnStartup(object sender, StartupEventArgs e)
        {
            // 直接创建主窗口，不依赖复杂的AppService
            var mainWindow = new Views.MainWindow();
            mainWindow.Show();
        }
    }
}